<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
 <head>
    <style>
  
    </style>        
    </head>
    <body style="padding:15px;padding-bottom: 150px;background-color: #eeeeee">
        
        <div style="text-align: center;color:#CD853F;font-size: 1.2em"><strong><?php echo Vote::model()->findByPk(1)->title?></strong></div>
        
        <div class="am-g" style=" background-color:#CD853F;line-height: 2.5em;margin-top: 1em;color: white">
             <div class="am-u-sm-3">排行</div>
             <div class="am-u-sm-2">编号</div>
             <div class="am-u-sm-4">企业名称</div>
             <div class="am-u-sm-3">投票数</div> 
        </div>
        <?php  foreach($model as  $key=>$value){?>
        <div class="am-g" style="background-color: #CDAD00;line-height: 2em;margin-top: 0.5em">
             <div class="am-u-sm-3"><?php echo $key+1;?></div>
             <div class="am-u-sm-2"><?php echo $value->id;?></div>
             <div class="am-u-sm-4"><?php echo $value->username;?></div>
             <div class="am-u-sm-3"><?php echo $value->number;?></div>
        </div>
        <?php
        }
        ?>
         

        
</body>
</html>
